<?php
namespace Home\Controller;
use Think\Controller;
use Think\Page;

class IndexController extends CommonController {


  public function index(){
  	
  	$art = M('Article');
  	//暂时写死 拿10条数据
  	$art_list = $art->where('status=0 and category_id>2 ')->limit(10)->order('id desc')->select();
  	$this->assign('data',$art_list);
  	
    $this->display('Index/index');
  }
	
}